package org.orqlog.server;

import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.framework.CuratorFrameworkFactory;
import org.apache.curator.retry.ExponentialBackoffRetry;
import org.apache.zookeeper.CreateMode;
import org.apache.zookeeper.WatchedEvent;
import org.apache.zookeeper.Watcher;
import org.orqlog.service.UserServiceImpl;

public class ServerBootstrap {

    public static void main(String[] args) throws Exception {
        ZkRegister register = new ZkRegister();
        UserServiceImpl.startServer("127.0.0.1",8990, register);

        register.registerServer("127.0.0.1:8990");
    }

}
